package com.engine4cloud.tdf.education.dto.create;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 学习记录表
 *
 * @author wenjie
 * @date 2024-08-15 15:06:54
 */
@Data
@Schema(description = "学习记录表")
public class EduLearningRecordCreateDTO implements Serializable {
    /**
     * 任务编号
     */
    @Schema(description = "任务编号")
    @NotBlank(message = "任务编号不能为空")
    private String taskCode;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    @NotBlank(message = "矫正对象编号不能为空")
    private String studentCode;

    /**
     * 矫正对象姓名
     */
    @Schema(description = "矫正对象姓名")
    @NotBlank(message = "矫正对象姓名不能为空")
    private String studentName;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间", example = "2024-01-01 00:00:00")
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间", example = "2024-01-01 00:00:00")
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    /**
     * 时长
     */
    @Schema(description = "时长", example = "2.5")
    @NotNull(message = "时长不能为空")
    private BigDecimal duration;

    /**
     * 矫正对象所属部门
     */
    @Schema(description = "矫正对象所属部门", example = "1")
    @NotNull(message = "矫正对象所属部门不能为空")
    private Long deptId;

    /**
     * 矫正对象所属部门名称
     */
    @Schema(description = "矫正对象所属部门名称")
    @NotNull(message = "矫正对象所属部门名称不能为空")
    private String deptName;

}